package org.springframework.core.type;

import lombok.RequiredArgsConstructor;
import org.springframework.core.annotation.MergedAnnotations;

public class StandardAnnotationMetadata implements AnnotationMetadata {

    private final MergedAnnotations mergedAnnotations;
    private final boolean nestedAnnotationsAsMap;

    public StandardAnnotationMetadata(Class<?> beanClass,
                                      boolean nestedAnnotationsAsMap) {

        this.mergedAnnotations = null;
        this.nestedAnnotationsAsMap = nestedAnnotationsAsMap;
    }

    public static AnnotationMetadata from(Class<?> beanClass) {
        return new StandardAnnotationMetadata(beanClass, true);
    }
}
